//
//  Define.h
//  AFNetWorking再封装
//
//  Created by 刘雪龙 on 2020/3/14.
//  Copyright © 2020 戴文婷. All rights reserved.
//

#ifndef Define_h
#define Define_h

#define API @"http://devmobile.zhuawawa.site/neckpets/getBlindBoxSeriesLitByTabType.json"
#define KScreenHeight [UIScreen mainScreen].bounds.size.height
#define KScreenWidth  [UIScreen mainScreen].bounds.size.width

#define kIs_iphone (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone)
/*item尺寸*/
#define item_width   (KScreenWidth-10*2-5)/2
#define item_height  (CGFloat)(kIs_iphone?(item_width*1.33+18):(item_width*1.20))

#define kIs_iPhoneX KScreenWidth >=375.0f && KScreenHeight >=812.0f&& kIs_iphone
/*状态栏和导航栏总高度*/
#define kNavBarAndStatusBarHeight (CGFloat)(kIs_iPhoneX?(88.0):(64.0))
#define kNavSystemHeight (CGFloat)(kIs_iphone?(kNavBarAndStatusBarHeight):(74.0))

#define SLog(format, ...) printf("class: <%p %s:(%d) > method: %s \n%s\n", self, [[[NSString stringWithUTF8String:__FILE__] lastPathComponent] UTF8String], __LINE__, __PRETTY_FUNCTION__, [[NSString stringWithFormat:(format), ##__VA_ARGS__] UTF8String] )

#endif /* Define_h */
